<U:PRJTMP x:Class="WPFExcelReport.UBTWTVA"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    xmlns:WK="clr-namespace:WPFExcelReport;assembly=TWASTKE"  
                    xmlns:BF="clr-namespace:WPFExcelReport;assembly=TBSFARB"   
                    xmlns:BT="clr-namespace:WPFExcelReport;assembly=TWTSAER"  
                    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWASTGA"  
                    xmlns:FT="clr-namespace:WPFExcelReport;assembly=TWTSCHUSS" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM" 
                    xmlns:DF="clr-namespace:WPFExcelReport;assembly=TWTEINZ"  
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"  
                     xmlns:WTW="clr-namespace:WPFExcelReport;assembly=TWTGEW"  
                     xmlns:BG="clr-namespace:WPFExcelReport;assembly=TBASTGA"  
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                    xmlns:ST="clr-namespace:WPFExcelReport;assembly=TSTUELI"  
                    xmlns:U="clr-namespace:WPFExcelReport;assembly=ITXUI"   
                    Name="TV" 
>
    <U:PRJTMP.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </U:PRJTMP.Resources>
     
     <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1.5*"></RowDefinition> 
                <RowDefinition Height="Auto"></RowDefinition> 
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
        <U:TUBTVA06 Grid.Row="0"  Grid.Column="0" Grid.ColumnSpan="2"
                     Name="cVA" 
                        IsSameProdArt="False" 
                         IsShowTxt="True"
                        FDDIM="TCM"
                       IsShowRight="{Binding IsShowRight,ElementName=TV}" 
                    ARTST="F"/> 
            <TabControl Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
                <TabItem Header="{Binding Source={Localization:Translate Word=规格}}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <U:WSUBTBOX Grid.Row="1"  Grid.Column="0"  
                                Margin="5,0,0,0" Name="cWS" 
                                IsAuto="True" 
                                IsImage="False" 
                                DES="{Binding DES,ElementName=cVA}"  
                                ARTGRP="{Binding ARTGRP,ElementName=cVA}"  
                                PRODGRP="{Binding PRODGRP,ElementName=cVA}"  
                                ORDERNUM="{Binding PRART,ElementName=cVA}"
                                WALIEFNR="{Binding LIEFNR,ElementName=cVA}"
                                FBRTU="{Binding FBRTU,ElementName=cVA}"  
                                FBRTL="{Binding FBRTL,ElementName=cVA}"  
                                FGRLFD="{Binding FGRLFD,ElementName=cVA}"  
                                FGRQM="{Binding FGRQM,ElementName=cVA}"  
                                FFDDIK="{Binding FFDDIK,ElementName=cVA}"  
                                FFDDIS="{Binding FFDDIS,ElementName=cVA}"
                                DENUM="{Binding FDDIM,ElementName=cVA}"                      
                                IsEdit="{Binding IsEdit,ElementName=cVA}" 
                                IsSaved="{Binding IsSaved,ElementName=cVA}" 
                                IsExtProd="{Binding IsExtProd,ElementName=cVA}"
                                IsCO="True"   
                                IsWS22R="True"  
                                IsWS22T="True"  
                                IsWS22="False"   
                                IsShowRight="{Binding IsShowRight,ElementName=cVA}"
                                IsImageMax="{Binding IsImageMax,ElementName=cVA}" 
                                IMAGEPATH="{Binding IMAGEPATH,ElementName=cVA}"
                                DEFTXT="{Binding DEFWSTXT,ElementName=cVA}"/> 
                    <ST:TWS04   Grid.Row="1"  Grid.Column="1" 
                                 Margin="0,5,0,0" Name="cWS04"
                               EXAUF="{Binding KEY,ElementName=cWS}"
                               IsEdit="{Binding IsEdit,ElementName=cVA}"
                               IsSaved="{Binding IsSaved,ElementName=cVA}"
                              />
                </Grid> 
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=色号管理}}">
                <VF:TWVA09 Grid.Row="0"  Grid.Column="0" Margin="0,5,0,0" 
                       Name="cVA09"
                       IsAuto="True"
                       dwVA="{Binding dwVA,ElementName=cVA}"  
                       PRART="{Binding PRFART,ElementName=cVA}"
                       KOLL="{Binding KOLL,ElementName=cVA}"
                       ART="{Binding NART,ElementName=cVA}"
                       FARBE="{Binding FARBE,ElementName=cVA}"
                        EXAUF="{Binding KEY,ElementName=cVA}"
                      
                       />
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=成本}}"  Name="ZoneCO">
                <WS:TWSCO Grid.Row="0" Grid.RowSpan="3" Grid.Column="1"
                          Visibility="{Binding IsCO,ElementName=cWS,Converter={StaticResource bv}}"
                          EXAUF="{Binding KEY,ElementName=cWS}"
                        />
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=织造工艺}}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="1*"/>
                        </Grid.RowDefinitions>
                        <WK:TWS31  Grid.Row="0"  Grid.Column="1"  Name="cWS31"
                       IsAuto="{Binding IsAuto,ElementName=cWS}" 
                       EXAUF="{Binding PRFART,ElementName=cVA}"
                       IsEdit="{Binding IsEdit,ElementName=cVA}" 
                       IsSaved="{Binding IsSaved,ElementName=cVA}"/>
                    <U:UIWS22UBT Grid.Row="1"  Grid.Column="0"  
                          IsAuto="True"
                           Name="cWS22"
                          IsEdit="{Binding IsEdit,ElementName=cWS}"
                          IsSaved="{Binding IsSaved,ElementName=cWS}"
                          ORDERNUM="{Binding KEY,ElementName=cWS}"
                          EINZNR="{Binding EINZNR,ElementName=cWS}"
                          BIND="{Binding BIND,ElementName=cWS}"
                          GFDISM="{Binding GFDISM,ElementName=cWS}"
                         />
                </Grid> 
                </TabItem>
                <TabItem Header="{Binding Source={Localization:Translate Word=备注}}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <TXT:TXTITX    Grid.Column="0" Margin="0,0,0,0"
                        TART="WFT"
                        SIND="{Binding TXTISIND,ElementName=cVA}"  
                        IsEdit="{Binding IsEdit,ElementName=cVA}"
                        DEFTXT="{Binding DEFTXT,ElementName=cVA}"   
                        VerticalAlignment="Top"/>
                    <ex:AniScrollViewer Grid.Column="1"  >
                        <ex:TImage  IsImageMax="{Binding ElementName=cWS,Path=IsImageMax}"
                              PHOTOLINK="{Binding ElementName=cWS,Path=PHOTOLINK}"
                                    />
                    </ex:AniScrollViewer>
                </Grid>
            </TabItem>
                <TabItem Header="{Binding Source={Localization:Translate Word=经纬纱}}" Name="chkJW">
                    <Grid Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                        </Grid.ColumnDefinitions>
                        <BT:TDWT15 Grid.Column="0" 
                                  Margin="20,20,20,20"
                                    IsCanLoad ="{Binding IsSelected,ElementName=chkJW}"
                                   ORDERNUM="{Binding WTKEY,ElementName=cWS31}" 
                                  />
                        <BG:TSBS08 Grid.Column="1" 
                           EXAUF="{Binding WARP,ElementName=cWS31}"
                           IsCanChg="False"
                         />
                        <BT:TDWT15 Grid.Column="2" 
                              Margin="20,20,20,20"
                              IsCanLoad ="{Binding IsSelected,ElementName=chkJW}"
                              ORDERNUM="{Binding WTKEY,ElementName=cWS22}" 
                              />
                        <WG:TWS33 Grid.Column="3"  
                          DENUM="{Binding DENUM,ElementName=cWS}" 
                          RWBRT="{Binding RWBRT,ElementName=cWS}" 
                          RBRTOL="{Binding RBRTOL,ElementName=cWS}"  
                          GFDISM="{Binding GFDISM,ElementName=cWS22}" 
                          WTKEY="{Binding WTKEY,ElementName=cWS22}" 
                          EXAUF="{Binding PRFART,ElementName=cVA}" 
                         />
                    </Grid>
                </TabItem>
                <TabItem Header="{Binding Source={Localization:Translate Word=花型}}" Name="chkPattern">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="1*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=穿综}}" Grid.Row="0" Grid.Column="0"/>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=纹板}}" Grid.Row="0" Grid.Column="1"/>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=组织图}}" Grid.Row="0" Grid.Column="2"/>
                        <DF:TWTDF Grid.Row="1" Grid.Column="0"
                      Margin="20,20,20,20"
                            IsCanLoad ="{Binding IsSelected,ElementName=chkPattern}"
                      ORDERNUM="{Binding BIND,ElementName=cWS22}" 
                      />
                        <DF:TWTPEG Grid.Row="1"  Grid.Column="1"
                        IsCanLoad ="{Binding IsSelected,ElementName=chkPattern}"
                                   Margin="20,20,20,20"
                      ORDERNUM="{Binding PEGPLAN,ElementName=cWS22}"                  
                      />

                        <DF:TWTWV Grid.Row="1"  Grid.Column="2"
                            IsCanLoad ="{Binding IsSelected,ElementName=chkPattern}"
                          Margin="20,20,20,20"
                          ORDERNUM="{Binding WEAVE,ElementName=cWS22}"                  
                          />
                    </Grid>
                </TabItem>
            </TabControl> 
        </Grid>
  
</U:PRJTMP>
    
